package com.example.lklibrary.bi.utils;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.HashMap;

public class LKCollectJsonUtil {

    public static HashMap<String, String> parseJsonToMap(String json) {
        Gson gson = new Gson();
        Type type = (new TypeToken<HashMap<String, String>>() {
        }).getType();
        HashMap map = null;

        try {
            map = (HashMap)gson.fromJson(json, type);
        } catch (Exception var5) {
            var5.printStackTrace();
        }

        return map;
    }
}
